# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rainbowcrack
pkgver=1.8
pkgrel=1
groups=('blackarch' 'blackarch-cracker')
pkgdesc='Password cracker based on the faster time-memory trade-off. With MySQL and Cisco PIX Algorithm patches.'
arch=('x86_64')
url='http://project-rainbowcrack.com/'
license=('custom:unknown')
depends=('gcc-libs')
source=("http://project-rainbowcrack.com/$pkgname-$pkgver-linux64.zip")
sha512sums=('84dbf3431605fb5dcc8e7cd305a43e9b239ebd6e5ef120edd951a3180c38498fe3a26157e3b55d114c6630f8ac1382a610d8e6230779c5b12cbc42c04e9aff57')

package() {
  cd "$pkgname-$pkgver-linux64"

  install -Dm 755 -t "$pkgdir/usr/bin" r{t,c}*
  install -Dm 755 alglib0.so "$pkgdir/usr/lib/alglib0.so"
  install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" charset.txt readme.txt
  install -Dm 644 readme.txt "$pkgdir/usr/share/doc/$pkgname/readme.txt"
}

